﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="Manage.ascx.cs" Inherits="Views_Users_Manage" %>
<div class="HomeRightTitle">
	<div class="RightTitleCH">
		<asp:Literal ID="lit_MainTitle" runat="server" Text="用户管理"></asp:Literal>
	</div>
	<div class="RightTitleEN">
		<asp:Literal ID="lit_SubTitle" runat="server" Text="Frontfree"></asp:Literal>
	</div>
</div>
<div id="DetailBodyRightMain" class="MinHeight_500">
	<asp:GridView ID="gv_Users" runat="server" AutoGenerateColumns="false" DataKeyNames="UserId"
		EnableViewState="true" AllowPaging="true" PageSize="15" CssClass="GVStyle" HeaderStyle-BackColor="#ffba21" HeaderStyle-ForeColor="#333333">
		<PagerStyle HorizontalAlign="Right" />
		<PagerSettings Mode="NextPreviousFirstLast" FirstPageText="第一页" LastPageText="最后一页"
			NextPageText="下一页" PreviousPageText="上一页" />
		<Columns>
			<asp:TemplateField HeaderText="显示姓名">
				<ItemStyle Width="190px" />
				<ItemTemplate>
					<asp:Label ID="lbl_Name" runat="server"></asp:Label>
				</ItemTemplate>
				<EditItemTemplate>
					<asp:TextBox ID="tb_Name" runat="server"></asp:TextBox>
				</EditItemTemplate>
				<ItemStyle Wrap="true" />
			</asp:TemplateField>
			<asp:TemplateField HeaderText="E-mail">
				<ItemStyle Width="190px" />
				<ItemTemplate>
					<asp:Label ID="lbl_Email" runat="server"></asp:Label>
				</ItemTemplate>
				<ItemStyle Wrap="true" />
			</asp:TemplateField>
			<asp:TemplateField HeaderText="注册日期">
				<ItemStyle Width="90px" />
				<ItemTemplate>
					<asp:Label ID="lbl_CreateDate" runat="server"></asp:Label>
				</ItemTemplate>
			</asp:TemplateField>
			<asp:TemplateField HeaderText="最后登录">
				<ItemStyle Width="90px" />
				<ItemTemplate>
					<asp:Label ID="lbl_LastLoginDate" runat="server"></asp:Label>
				</ItemTemplate>
				<ItemStyle Wrap="true" />
			</asp:TemplateField>
			<asp:TemplateField HeaderText="重置密码">
				<ItemStyle Width="90px" />
				<ItemTemplate>
					<asp:LinkButton ID="lbtn_ResetPasswrod" Text="重置" runat="server" OnClientClick="return confirm('确定重置此用户密码么？用户密码将重置为123456，无法恢复。')" CommandName="reset" />
				</ItemTemplate>
				<ItemStyle Wrap="true" />
			</asp:TemplateField>
			<asp:TemplateField>
				<ItemStyle Width="90px" />
				<ItemTemplate>
					<asp:LinkButton ID="lbtn_EditUser" Text="修改" runat="server" />
					<asp:LinkButton ID="lbtn_DeletUser" Text="删除" runat="server" OnClientClick="return confirm('确定删除此用户么？删除后将无法恢复。')" />
				</ItemTemplate>
				<EditItemTemplate>
					<asp:LinkButton ID="lbtn_Submit" Text="确认" runat="server" />
					<asp:LinkButton ID="lbtn_Cancel" Text="取消" runat="server" />
				</EditItemTemplate>
			</asp:TemplateField>
		</Columns>
	</asp:GridView>
</div>
